<?php
class p_info_recipe extends Model{
	public static function getTableName(){
		return 'p_info_recipe';
	}

	public function set($object){
		$this->episode_id = !isset($object->episode_id) ? '0' : $object->episode_id;
		$this->dish_name_chinese = !isset($object->dish_name_chinese) ? '' : trim($object->dish_name_chinese);
		$this->dish_name_english = !isset($object->dish_name_english) ? '' : trim($object->dish_name_english);
		$this->cuisine_category = !isset($object->cuisine_category) ? '0' : $object->cuisine_category;
		$this->cuisine_sub_category = !isset($object->cuisine_sub_category) ? '0' : $object->cuisine_sub_category;
		$this->food_category = !isset($object->food_category) ? '0' : $object->food_category;
		$this->method_type = !isset($object->method_type) ? '0' : $object->method_type;
		$this->main_ingredients = !isset($object->main_ingredients) ? '0' : $object->main_ingredients;
		$this->ingredients = !isset($object->ingredients) ? '' : $object->ingredients;
		$this->seasonings = !isset($object->seasonings) ? '' : $object->seasonings;
		$this->sauce = !isset($object->sauce) ? '' : $object->sauce;
		$this->cooking_method = !isset($object->cooking_method) ? '' : $object->cooking_method;
		$this->hints = !isset($object->hints) ? '' : $object->hints;
		$this->designed_by = !isset($object->designed_by) ? '' : $object->designed_by;
		$this->presented_by = !isset($object->presented_by) ? '' : $object->presented_by;
		$this->purpose = !isset($object->purpose) ? '' : $object->purpose;
		$this->useful_information = !isset($object->useful_information) ? '' : $object->useful_information;
        $this->publish_datetime = !isset($object->publish_datetime) ? '' : $object->publish_datetime; 
        $this->expire_datetime = !isset($object->expire_datetime) ? '' : $object->expire_datetime;
		$this->status = !isset($object->status) ? '0' : $object->status;
		$this->created_by = !isset($object->created_by) ? '' : $object->created_by;
		$this->created_at = !isset($object->created_at) ? '' : $object->created_at;
		$this->modified_by = !isset($object->modified_by) ? '' : $object->modified_by;
		$this->modified_at = !isset($object->modified_at) ? '' : $object->modified_at;
		$this->description = !isset($object->description) ? '' : $object->description;
	}
}
?>
